# 请使用最少的代码求1~100内3和5的公倍数。本题目主要是考查偏函数编程
def lcm(x, y):

   #  获取最大的数
   if x > y:
       greater = x
   else:
       greater = y
   list1=[]
   while(True):
       if (greater % x == 0) and (greater % y == 0):
           lcm1 = greater
           if lcm1>100:
               break
           list1.append(lcm1)

       greater += 1
   return list1


# 获取用户输入
num1 = int(input("输入第一个数字: "))
num2 = int(input("输入第二个数字: "))

print( num1,"和", num2,"1`100的公倍数为", lcm(num1, num2))